package com.ruoyi.leave.service;

import com.ruoyi.leave.entity.LeaveInfo;
import vip.lsjscl.flowboot.common.ResponseData;

import java.util.List;
import java.util.Map;

/**
 * 请假 服务
 *
 * @author zhangxingju
 * @date 2025/02/15
 */
public interface LeaveInfoService {
    /**
     * 获取我的申请列表
     */
    ResponseData getMyApplications(Map<String, Object> params);

    /**
     * 获取待办任务列表
     */
    ResponseData getTodoTasks();

    /**
     * 获取已办任务列表
     */
    ResponseData getDoneTasks(List<String> businessIds);

    /**
     * 提交请假申请
     */
    ResponseData submitLeaveApplication(LeaveInfo leaveInfo);

    ResponseData saveOrUpdate(LeaveInfo leaveInfo);

    ResponseData getLeaveDetail(String id);

    ResponseData deleteLeaveApplication(String id);
}